package com.xian.message.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author xianliru
 * @email xianliru@100tal.com
 * @date 2020/4/17 4:18 下午
 */
@RestController
@RequestMapping("api")
public class ApiController {

	@GetMapping("index")
	public String index(@RequestParam("id") Long id){
		return id+ UUID.randomUUID().toString();
	}
}
